package org.visu;

import java.util.Vector;

/**
 * @author viswanath
 * 
 * This class will removes Even positions in Vector 
 * 
 */

public class VectorDemo {
	static Vector<String> v1 = new Vector<String>();
	
	public static void main(String args[]) {
		v1.add("zero");
		v1.add("one");
		v1.add("two");
		v1.add("three");
		v1.add("four");
		v1.add("five");
		v1.add("six");
		v1.add("seven");
		v1.add("eight");
		v1.add("nine");
		System.out.println("vector***********"+v1);
	
	int i= v1.size();
	System.out.println("i value"+i);
	for (int j = 0; j < v1.size(); j++) {
		System.out.println("v1 size........"+v1.size());
		System.out.println("index "+i+v1.remove(j+1));
	}
	System.out.println("vector***********"+v1);
		
	}
	
	
	}


